<div *ngIf="data.length > 0; then dataList else noData"></div>
<ng-template #dataList>课程列表</ng-template>
<ng-template #noData>没有更多数据</ng-template>

<div [hidden]="data.length == 0">课程列表</div>
<div [hidden]="data.length > 0">没有更多数据</div>

<li *ngFor="
      let item of list;
      let i = index;
      let isEven = even;
      let isOdd = odd;
      let isFirst = first;
      let isLast = last;
      trackBy: identify
    "
>
    {{item}}{{i}}{{isEven}}{{isOdd}}{{isFirst}}{{isLast}}
</li>

<p [appHover]="{ bgColor: 'red' }">芜湖</p>
date 日期格式化
currency 货币格式化
uppercase 转大写
lowercase 转小写
json 格式化json 数据
<p>{{time | date : "yyyy-MM-dd"}}</p>
<p>{{"和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发和的撒发" | summary}}</p>
<p>{{"Hello" | uppercase}}</p>
<p>{{"Hello" | lowercase}}</p>
<p>{{list | json}}</p>
<!--output '$0.26'-->
<p>A: {{a | currency}}</p>

<!--output 'CA$0.26'-->
<p>A: {{a | currency:'CAD'}}</p>

<!--output 'CAD0.26'-->
<p>A: {{a | currency:'CAD':'code'}}</p>

<!--output 'CA$0,001.35'-->
<p>B: {{b | currency:'CAD':'symbol':'4.2-2'}}</p>

<!--output '$0,001.35'-->
<p>B: {{b | currency:'CAD':'symbol-narrow':'4.2-2'}}</p>

<!--output '0 001,35 CA$'-->
<p>B: {{b | currency:'CAD':'symbol':'4.2-2':'fr'}}</p>

<!--output 'CLP1' because CLP has no cents-->
<p>B: {{b | currency:'CLP'}}</p>